.edit-index {

    .unknown-option-warning {
        position: absolute;
        right: 10px;
        top: 10px;
    }
    
    .panel-info {
        background-color: fadeout(@brand-info-dark,60%);
    }

    @media (min-width:@screen-xl) {
        .index-name {
            order:1;
        }
        .index-properties {
            order:2;
        }

        .index-actions {
            order:3;
        }
    }
    
    .sourcePreview {
        min-height: 400px;
    }
    
    #additionalAssemblies {
        .dropdown-toggle {
            min-width: 135px;
        }
    }
    
    .history-dropdown-container {
        background-color: @gray-darker;
        max-height: 800px;
        height: 780px;
        width: 1000px;
        
        h3 {
            font-weight: bold;
        }
    }

    .history-dropdown {
        width: 100%;
        max-width: calc(100vw ~"-" @grid-gutter-width/3*4);
    }

    .history-list-container {
        background-color: @well-bg;
        padding: @grid-gutter-width/4;
        position: relative;
        height: 700px;
        padding: 0;
    }
    
    .history-list {
        background-color: @well-bg;
        list-style: none;
        margin: 0;
        padding: 0;

        li {
            &:hover {
                background-color: lighten(@well-bg,3%);
            }

            &.selected {
                background-color: @brand-primary;
                a {
                    color: @gray-lighter !important;
                }
            }

            .history-link {
                padding: 2px 10px;
                display: flex;

                .created-at {
                    font-weight: bold;
                }
            }
        }

        .tooltip-inner {
            min-width: 260px;
            text-align: left;
        }
    }

    #definition-preview.has-rolling-info {
        .history-preview-area:not(.fullScreen-editor) {
            height: 400px !important;
        }
    }

    #definition-preview.no-rolling-info {
        .history-preview-area:not(.fullScreen-editor) {
            height: 630px !important;
        }
    }

    .history-rolling-deployment-area {
        max-height: 160px;
        overflow: auto;

        .tooltip-inner {
            min-width: 260px;
            text-align: left;
        }
    }
    
    .analyzer-dropdown {
        max-height: 300px;
        cursor: default;
    }

    .text-index {
        position: sticky;
        bottom: 0;
        z-index: @zindex-text-index;
    }
    .index-test-results {
        position: absolute;
        top: 0;
        height: 0;
        width: 100%;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        border-radius: @gutter @gutter 0 0;
        z-index: -1;
        transform: translateY(-100%);
        transition: height .5s cubic-bezier(0.56, 0.12, 0.29, 1);
        overflow: hidden;

        &.active {
            height: 70vh;
        }
    }

    .archive-info-bold {
        font-weight: bolder;
    }
}

.auto-index {
    .labels {
        h6 {
            line-height: 18px
        }
    }

    .label {
        width: 120px;
        flex-shrink: 0;
        color: @text-muted;

        h3 {
            margin: 0;
        }
    }

    .auto-index-fields {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;

        &>div {
            margin: @gutter-xxs/2;
        }
    }

    .indexing-options {
        border-top: 1px solid @gray-dark;
        font-size: 10px;
        text-transform: uppercase;
        text-align: center;
        color: @gray-dark;
        padding-top: 4px;

        .item {
            color: @text-color;

            &:not(.active) {
                .icon-check {
                    display: none;
                }
            }

            & + .item {
                border-left: 1px solid @gray-dark;
                margin-left: @grid-gutter-width/3;
                padding-left: @grid-gutter-width/3;
            }

            &.active {
                .icon-cancel {
                    display: none;
                }

                color: @text-emphasis;

                .icon-check {
                    .text-success;
                }
            }
        }
    }

    .property {
        margin: 7px 15px;
        text-align: center;
    }

    .panel {
        .collection, .fieldname {
            h4 {
                font-weight: bold;
                color: @text-emphasis;
            }
        }

        &:first-of-type {
            .fieldname, .sort, .operation, .collection {
                position: relative;

                &:before {
                    position: absolute;
                    display: block;
                    left: -110px;
                    width: 80px;
                    text-align: center;
                    font-size: 11px;
                    text-transform: uppercase;
                    color: @text-color;
                }
            }

            .collection:before {
                content: 'Collection';
            }

            .fieldname:before {
                content: 'Field name';
            }

            .sort:before {
                content: 'Sort';
            }

            .operation:before {
                content: 'Operation';
            }
        }
    }

    .label-margin {
        margin-left: 127px;
        text-align: center;
    }

    hr {
        border-color: @gray-darker;
    }
}

#additionalsource {
    .item-list {
        margin-right: @grid-gutter-width/2;
    }

    pre {
        flex-grow: 1;
        height: 400px;
    }
}
